﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserManagement_UserRoles : System.Web.UI.Page
{
    POSEntities db = new POSEntities();
    protected void Page_Load(object sender, EventArgs e)
    {
        
            var roles = (from r in db.Roles
                         where r.BranchId == 1 && r.Active == true
                         select r).ToList();

        //var users = (from u in db.Users
        //             where u. == true
        //             select r).ToList();

        rptUsers.DataSource = roles;
        rptUsers.DataBind();
        

    }
}